/*
 * @Author: Jhj
 * @Date: 2019-05-04 22:22:34
 * @LastEditTime: 2022-05-31 15:52:13
 * @Description: 
 * 
 */
import axios from 'axios';
import {getUser} from "./auth";

const service = axios.create({
    // baseURL: "https://http://jhj.gz2vip.91tunnel.com",
    baseURL: "http://127.0.0.1:80",
    timeout: 30000,     // 超时时间
    headers: {
		'Authorization-token': "ZW " + getUser().token,    // 定义头信息，每次请求都将头信息带过去
	},
});

export default service;
